import MessageBox from './index.vue'
export default {
    install(Vue) {
        function generateInstance(options) {
            const Ctor = Vue.extend(MessageBox)
            let instance = new Ctor({
                propsData: options
            }).$mount(document.createElement('div'))
        }
        Vue.prototype.$confirm = function(options) {
            generateInstance(options)
        }
    }
}